////////////////////////////////////////////////////////////////////////////////
//Copyright 2009 Christopher Betancourt
//
//This file is part of PEAQ
//
//PEAQ is free software: you can redistribute it and/or modify it under the 
//terms of the GNU Lesser General Public License as published by the Free 
//Software Foundation, either version 3 of the License, or (at your option) any
//later version.
//
//PEAQ is distributed in the hope that it will be useful, but WITHOUT ANY 
//WARRANTY; without even the implied warranty of MERCHANTABLILTY or FITTNESS FOR
//A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more 
//details.
//
//You should have received a copy of the GNU Lesser Public License with PEAQ.  
//If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
package extractBlack;

import processing.StatisticsReturnType;

public class ExtractBlackStatistics extends StatisticsReturnType {
	private double mean;
	private double stdDev;
	private int [] histogram;
	
	public ExtractBlackStatistics(double mean, double stdDev, int [] histogram)
	{
		this.mean=mean;
		this.stdDev=stdDev;
		this.histogram=histogram;
	}
	
	public ExtractBlackStatistics()
	{
		mean=0.0;
		stdDev=0.0;
		histogram=new int[256];
		
		for(int i=0;i<256;++i)
		{
			histogram[i]=0;
		}
	}
	
	public void setMean(double mean)
	{
		this.mean=mean;
	}
	
	public void setStdDev(double stdDev)
	{
		this.stdDev=stdDev;
	}
	
	public void setHistogram(int [] histogram)
	{
		this.histogram=histogram;
	}
	
	public double getMean()
	{
		return mean;
	}
	
	public double getStdDev()
	{
		return stdDev;
	}
	
	public int [] getHistogram()
	{
		return histogram;
	}
}
